package co.yixiang.modules.system.entity.dto;

import co.yixiang.modules.system.entity.domain.Wholesale;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
public class WholesaleDto extends Wholesale {

    private static final long serialVersionUID = 853297561151783335L;

    public WholesaleDto(Wholesale wholesale) {
        BeanUtils.copyProperties(wholesale, this);
    }
}

